//
//  Target_A.m
//  ZHCTMediatorDemo
//
//  Created by 赵宏亚 on 2019/8/12.
//  Copyright © 2019 Arthur. All rights reserved.
//

#import "Target_A.h"
#import "AViewController.h"
#import "BViewController.h"

@implementation Target_A

- (UIViewController *)Action_AViewController:(NSDictionary *)params {
    
    typedef void (^CallBackType)(NSString *);
    CallBackType callback = params[@"callback"];
    
    if (callback) {
        callback(@"成功了");
    }
    AViewController *viewController = [[AViewController alloc] init];
    return viewController;
}

- (UIViewController *)Action_BViewController:(NSDictionary *)params {
    
    NSLog(@"name === %@",params[@"name"]);
    
    BViewController *viewController = [[BViewController alloc] init];
    return viewController;
}

@end
